
	<div class="causas"><br />
		<p align="center">Ingrese Palabra de Materia o Rol para Iniciar La Búsqueda.</p>
		<center><form action="javascript:causasFunctions(2)" id="buscaCausas" method="post">
		<input type="text" name="idCausa" id="idCausa">
		<div id="hint"></div>
		<input id="buttonCausa" type="submit" name="Submit" value="Buscar Causas" >
		</form></center>
		<div id="msj_errorCausa"></div>
	</div><br />
	<div id="errorCausa">
	<?php
		echo "&nbsp;&nbsp; &nbsp; &nbsp;<b>TIP:</b> Click en el ROL deseado para ver detalles.<br />";
		echo "&nbsp;&nbsp; &nbsp; &nbsp;<b>TIP:</b> Última Causa Inicializada con fecha :<b> ".$this->my_library->dayMonthYear($fecha).".</b><br />";
		echo "<table id='tablaCausas'>";
		echo "<thead>";
		echo "<tr>";
		echo "<th width='13%'>ROL</th>";
		echo "<th style='text-align:center;'>MATERIA</th>";
		echo "</tr>";
		echo "</thead>";
		foreach($results->result() as $row){
				echo "<tr>";
				echo "<td><a style='cursor:pointer' title='Haga click para ver la información completa de la causa' onclick='javascript:causasFunctions(1,/".$row->rol."/)'>".$row->rol."</a></td>";
				echo "<td style='text-align:center'>".$row->materia."</td>";
				//echo "<td width='40' align='center'><a href='".base_url()."index.php/mod_causas/causas/makePdf/".$row->rol."'><img style='cursor:pointer' src='".base_url()."system/application/views/images/icons/stencil_pdf_icon.gif' title='Generar un PDF con la Causa'alt='pdf'/></a></td>";
				echo "</tr>";
        }
        echo "</table>";
     ?>
	
	</div>
<script type="text/javascript">
new Ajax.Autocompleter("idCausa","hint",base_url+"mod_causas/delCausa/getRol/"+1);
</script>